package week02.skin2;

import week02.skin2.black_skin.BlackFactory;
import week02.skin2.blue_skin.BlueFactory;
import week02.skin2.red_skin.RedFactory;

/**
 * Created by zhangxiaokun on 2018/2/1.
 */
public class TestSkin {
    public static void main(String[] args) {

        //黑色主题
//        Factory factory = new BlackFactory();

        //蓝色主题
        Factory factory = new BlueFactory();

        //红色主题
//        Factory factory = new RedFactory();

        Frame frame = factory.createFrame();
        Button button = factory.createButton();
        ScrollBar scrollBar = factory.createScrollBar();

        frame.addComponent(button);
        frame.addComponent(scrollBar);
    }

}
